<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="<%=request.getContextPath()%>/public/css/style.model.css">
<!-- core -->
<script src="<%=request.getContextPath()%>/public/js/jquery-1.5.1.min.js"></script>
<!-- dataTable -->
<script src="<%=request.getContextPath()%>/public/js/jquery-ui-1.8.13.custom.min.js"></script>
<!-- dataTable -->
<script src="<%=request.getContextPath()%>/public/js/jquery.dataTables.js"></script>

</head>
<body>
<div class="container">
<h2>业务对象列表</h2>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
	<thead>
		<tr>
			<th>对象名</th>
			<th>描述</th>
			<th>抽取为模型</th>
		</tr>
	</thead>
	<tbody>
	<c:set var="f" value="1" />
	<c:forEach var="table" items="${tables }">
	<c:set var="f" value="${f+1 }" />
	<tr class='grade<c:if test="${f%2==0}">B</c:if><c:if test="${f%2!=0}">A</c:if>'>
		<td><a href="<%=request.getContextPath()%>/c?s=model&o=field&t=${table.Name}">${table.Name}</a></td>
		<td>${table.Comment }</td>
		<td class="center"><a class="reflect" href="<%=request.getContextPath()%>/c?s=model&o=addform&t=${table.Name}">&nbsp;</a></td>
	</tr>
	</c:forEach>
	</tbody>
</table>
</div>
<script type="text/javascript">
	$().ready(function(){
		$("#example").dataTable({
	        "bJQueryUI": true,
	        "sPaginationType": "full_numbers"
	    });
<c:if test="${msg!=null}">alert('${msg}');</c:if>
	});
</script>
</body>
</html>